
//
//  ApplicationTopCell.swift
//  QualityControlSystem
//
//  Created by dundun on 17/1/18.
//  Copyright © 2017年 com.mask. All rights reserved.
//

import UIKit
import SnapKit

class ApplicationTopCell: UITableViewCell {

    var topImage: UIImageView?
    
    override init(style: UITableViewCellStyle, reuseIdentifier: String?) {
        super.init(style: style, reuseIdentifier: reuseIdentifier)
        
        selectionStyle = .none
        setupSubviews()
    }
    
    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
    func setupSubviews() {
        topImage = UIImageView()
        topImage?.contentMode = .scaleAspectFill
        topImage?.layer.masksToBounds = true
        topImage?.backgroundColor = UIColor.blue
        contentView.addSubview(topImage!)
        topImage?.snp.makeConstraints({ (make) in
            make.top.bottom.left.right.equalTo(self)
        })
    }
    
    override func awakeFromNib() {
        super.awakeFromNib()
  
    }

    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)

        // Configure the view for the selected state
    }
    
}
